fixing waypoint resize window bug