Fixed compatibility in compiler extension