Fix duplicate invalid input warning bug.