fixed flag error and backslash bug in cval.1