Fixed static middleware to have default expose_as