Use TabStaffMain to fix errors in an inputfile