Fixed memory tracking error