Fixing firefox bugg