Fixed idiotic mistake caused by self due to not reading the api correctly.