fix alloctions