fixed bug in geom class