closes issue #1332