Under the deal , only 14,000 Indonesian soldiers are allowed to remain in Aceh after the military completes its last withdrawal .