fix #501