fixed cursor setting
merged delete and insert operation and fixed split operation