added fix to ie6 and 7