fix checkval #379