Bug fix: call input.val(); because it works