fix ff and ie issues