fix error after load posts and before build them