Fix problem with autoinsert / leave insert