Fix problem when select category level and got undefined path parameter.