Fixes a printing bug by initializing values