fix repositioning