Fixed typo in if for firefox.