fix #1164