Alter fix to work correctly when numBoardings == 0