carrot mem leak fix