Change rc == 1 to rc == 0