fix mistake on val