BUG: handle case when homenode is not a list but an int