fix a bug with navigation