fix crash when no opening book in use