fixed ordered book bug front-end and back-end