fix build. closes #1151