fix compile warning: unused var