fixed problem when deleting current remote