fixed bugs on ie9, fixed bugs on http error