apply fix for upstream issue #111 and remove a print statement