Fix firefox UI bug