I have an idapython script which automatically defines bytes as code by a predefined configuration.  

The problem is that when it defines the block of bytes as code (by idc.create\_insn) it does not define references automatically.

For example, this is the outcome of the function:  

[![enter image description here](https://i.stack.imgur.com/DwK6S.png)](https://i.stack.imgur.com/DwK6S.png)

And this is the expected result:  

[![enter image description here](https://i.stack.imgur.com/vTcBz.png)](https://i.stack.imgur.com/vTcBz.png)

If 0x80004F0 cannot be defined automatically as offset, how can I programatically (with idapython) set it to be so?