Fixed a big problem with the spawn command that I overlooked