Small modification which fixed incorrect context base for insertions.