found a small potential bug in GraphicalModels