fixed wrong git pull & update logic