Bug fix for IE