Fixed bug in scan book

Edit book would edit the wrong book