Bugs fixed in history page