fix a compile warning