Fixed creating document with pre-defined primary key