Fix condition for books on homepage