Minor corrections

Fix a sync issue and reworking "missing" function