Fix constructor for compiled entities