fixed firefox bug at login