fix document update by slug/not id;