Fixing bug with goto logic

Fixed bug that ignored goto controls pointing to first position.
Fixed #84.