Fixing bug with process command