habitrpg-shared: bug fix in API