compile fix #1032