fixed multiple startpoints bug