Fixed a bug that was passing a invalid string to the shell