Fixed #786.