fix some bug which let the project can not be compiled!