fixed #566