Fix moving direction when using hash (#264)

See issue #264