Conditions not working in IE9