fix 507 handling