Fix Chrome and IE compatibility