Bug fixes for BART particle swarm optimzation