hopefully fixed the leftmenu error.
Fixed some small post writing bugs.