bugfix in Enum.clamp