fixed a bug of the navigator