Fix path mapping bug