fixes the movement stalling. resolves #20