fixed #1317