fixed compile warning.