fixed issue with required val msg generation