Show hide conditions not working on Safari (Mac)