Bugfix 1

Fixed bug with changing direction...