fixes api result errors