fix #1313
Merge pull request #1357 from ScottDowne/t1313

fix #1313