Fixed incorrect API variable name