fixed firefox timeout bugs