fix mem after call