fixed #789