fixed not found middleware