Found a bug which causes last proteingroup in table to never be stored