Fix for FireFox and IE