Fix less middleware problem