Collection.update_one sometimes does not work properly

I have an issue with motor. When I call Collection.update_one mongodb sometimes ignores update_one request. Ive checked update_one UpdateResult and its same as UpdateResult when mongodb isnt ignoring the request (both modified_counts are 1)

Is that happens because I wrong initialize the database class? Everything is working when I update_one document in empty script