Fixed some wrong variable names in Main Api Functions