fix missing method first in compression middleware