fix to validation