fixxed more bugs still having some issues with the final chain assembly in motif_assembler