fix exception when resource was not in sync
small fix