Fixed #306.