Cross-broswer compatibility fix