Fix "Invalid sync state '4'" error