Fixed incorrect logging comparison