fix refusing to update checked out branch error