fix compile method return code