fixed apicontroller error