fixed resize bug in ie8