fixed wrong middleware import