fix http panic error