Fixed problem with function 'previous station'