=change the free positions check bug