Fixing foreach error in Booklists.