Fixed a bug showing undefined in tutorial phase when it is ready to be complete.