Fix IE bug : constructor type check