Fixed a bug where old patches where used on extrude

This caused the extrude function to work as aspected only the first time.
selectedPatches is now cleared before extrusion.

Also found another place which required clearing of the selectedPatches.