Fixed another malloc bug