Fixes: https://github.com/pyrocms/pyrocms/issues/2203#issuecomment-12963037