fixed geometry type bug