The tech is not updated when the Player already researched the oil-refining.
Manually disabling and enabling this tech solves the issue:
/c game.player.force.technologies['oil-processing'].researched=false
/c game.player.force.technologies['oil-processing'].researched=true