fix bug adding autoinclude import regardless of the flag