fixed #778
fixed #778