Fixed repositioning error.