fixed firefox transition bug.