Fix issue where matched path was also param