fix browser inconsistencies