fixed some bugs with repositioning. version 0.0.5