fixed error when api updates