Fixed empty post writing