fix resolvePath for missing query, params