fixed regen functionality on client