fixed stock warning logic to match true first