fixed a couple of stupid bugs that prevented contigs getting added