Fixed bug in Navigator's navigate function