fix content_range
reduce ctx