[Bug 566101] ValueError: list.remove(x): x not in list