fixed middleware for less