Fixing problem printing out incorrect info