Fixed GeometryType value check