Fixed #316.