fixed #788