Browser compatibility fix