fix object::setPath for uninstantiated paths