fixed bugs in Api method