Fix bug where data section where being re-written