Fixed bug in main execution where the state argument was not being specified properly