fix the adding book bug