trace: remove logging statements.
trace: fix variable name bug.