fixed resize bug in IE and FF