fixed crash in offset tool