fixed #316