fix posts page bug