fixed #1386