update to v1.7 & fix bug