bug 782: removed echos and fixed variable name