fix ref finder