fix recv and parse bug