fix for https://github.com/HabitRPG/habitrpg/issues/1900