Fixed crash in technique cleanup

Fix for issue #10.