Fixed issue with control.val() when value is a number not a string