less-middleware fix