removed a error checking that was causing an error in ie