Fixed issue #1559.