Fixing notice in validator