fixed #312