fixed legend so it will work in IE. replaced 'remove' which wasn't supported in IE, with 'empty'