fixed a bug:
New-created post won't record author's IP