fixed moving objects bug