Fixed invalid check
p4#: 20692