fixed the feature detection

so Safari can fail fine.