Fixing firefox buttons bug