Fix bug in eager print removal