Fixed the issues with .text() working incorrectly.