Fixed mistakes in TAallocation