fixed turning at edge