Fix value check logic