fixed js undefined issue with navigation