Fix for flex error