Fix incomplete patterns check