[Core] Fix conditional.