fixed bug where halos couldn't be accessed with a slice
fixed bug where the halo generator always started from halo 1 instead of 0