fixed --- hr bug the difficult way