Rpm-ostree upgrade fail

When tryinig to perform upgrade I’m getting the following error:

── 12:47:22 - System update ────────────────────────────────────────────────────
note: automatic updates (stage) are enabled
error: While checking against deployment timestamp: No such metadata object c27337430878c5d26c233a4e82afa1f78ec23d59eed0b9f27b3797b0548f96f1.commit
System update failed: 
   0: Command failed: `/usr/bin/rpm-ostree upgrade`
   1: `/usr/bin/rpm-ostree` failed: exit status: 1

Trying to do sudo ostree fsck --verify-back-refs gives:

Validating refs...
Validating refs in collections...
Enumerating commits...
error: Ref ‘master’ in bindings for commit 310f64bc60ef2ead06ee3ae3684d786ae411884a72385a34edcb4f5cee08f2d9 does not exist

Any idea what can I do to fix that?