fix distinction between empty and unknown remote