Fixed problem with definition event in book mode