fixed bug with object moving