fix potential race conditon in moveObject