Fixed delete behaviour for last entry in bookstore