fixing middleware issue