Fixed errors in MainBook.