fix allow_resources