Bug fix for older browsers