Fixed API callback