fix update before local clone