another malloc fix