fix compile warning on Ubuntu