Fixed update errors when checkout failed on not commited changes