fixed OnMove event complaining