small bug in indxjs