Workaround for yesodweb/yesod#814