compile fix #1125