Some memory management fixes