fixed muliple insertion and notes entityId