Fixed issue #1333.