Fix encoding error and nav