fix https://github.com/HabitRPG/habitrpg/issues/2073