fixed TypeError in alignmentGraph

Fixes #267