Fixed .val() method