Fixed the spawn command not correctly working.