fix #477