Fix navigation (linux and windows found different clamp function)