fixed a bug that would cause graphercomponents to crash occasionally