Dirty fix to reset equationcounters