fix for units overshooting tiles when fps is low