Fixing addStudy in Firefox.