fix for IE9 erroring when setting property to a number