fix non array middleware option
Merge pull request #26 from cherbst/master

fix non array middleware option