bug enable eraseInLine as self function