fixed 'stuck in hut' bug