fix compile errors in IDE