Fixed #978