Bug in ApiController retrieving posts