fix remove no local repo bug

Change-Id: If1159c022787ff0373be45d228f68292e399aa9d