In order to fix this small bug, you should install terminal info on the DESTINATION machine (the one you are probably reaching through ssh).
curl -sSL https://raw.githubusercontent.com/alacritty/alacritty/master/extra/alacritty.info | tic -x -
curl -sSL https://raw.githubusercontent.com/r-c-f/foot/master/foot.info | tic -x -