Fix for previous commit(GraphicsElementMod refact)