fix use boolean index