fixed bug regarding wildcard routes