fix for valid