Fixing errors

Fixing errors in variables not printing correctly