Corrected shape_type assignment to read from the querystring