Fixed #297.
Fixed #299.