Fixed error when allowed_status is empty.