Fixed typo's in remove middleware.