fix for FF and IE11