fix bug with back in navigation controller