Added fix for removing last book