fixed compiler warnings in bitarray implementation
pass index id