Fixed bug in older browsers