fixed #663