test and fix #1108