Fixed #982