Fix bug - change .text() to .val()