mod_base: reapply change from d5604eca1f83491c37adf7981ff1cc598b7c57e2