fix delimitMate bugs.