fixed #176 bug