bugfix: static middleware