fixed user defined geometry bug