fixed compilation bug of code showing non-compile