Fixes a bug which does not allow cassandra batch and concurrent inserts