Fix: alert was not showing for books without chapters