Fixed bug where text fields would not get cleared when selecting a code book.