fixed #992