Fixed how getToken() was called