Remove debug statement and fix a print invocation