fixed bugs in diary section