fix #1008