fixed #476