fixed text comparison bug