Fixed #1213.