fix triple validation