Fixed commands being run incorrectly.