Fixed bug for allocation repository