fixing u-turn bug found in #282