fix error when changing the screen setting with empty book