fixed bug in Move method