Fixed outline-filling calculation and ensured content generates for the right chunks