fix nav direction bug