Fixing firefox bug