Fix corv_init
Fix corv_wait_read
Fix loop in corv_read_sec
Fix corv_ret_err