fixed firefox and backward compat