fixed the issue with unlatching textbook, the type wasn't getting defined