Fix boolean array indexing.