fix fail caused by include statement with skipped attribute