Fixed a bug where locator could get unexpected value when hash is not present
Fixed backup function