Fixed minor bug on ie8