Fix for IE, fixes #27