Validator bug fix

Fixes a bug whereby some solutions would be marked as incorrect falsely