warnings were still showing when not valid