fixes the onchange