fix a bug when using extrude