[bug 912440] Clean the to val before using it