Fix boolean logic bug and Cassandra column name case bug