fix the update issue and build issue