Attempt to solve middleware import issue