Fix invalid call when allow_methods is not set