Fixed #313.