fix #262, test done