improve min target regex
fix ref