fixed problem with api