unsafe warning fix for IE