Fixed issue #1670.