Fixed bug in not placing null in command array.