Fixed a bug in navigation