Fix phantom-base bug - was due to an off-by-one in the star allocation loop.