fixing less-middleware issue