Avoid memory leaks by breaking reference cycle: Print -> Fill -> Print