bugfixes in the table annotation step