Add fix for positions when resizing window