fixed #792