Fixed some bug in FireFox