Wrong amount of storage was being allocated for complex phases