attempt to fix #1050