Fix error in page with no post

Fix #1