fixed some malloc issues