Minor bug fixes in text and lucena's profile.