fixed #873