fixed API sample in README