Clamp value to at least 1 to prevent infinite loop