Release memory and fix a printing issue