Fixed bug in var name on console printout