firefox hoisting fix