fix callback leak. Closes #7