Fix/Minor table bug which led to an invalid tex file