fix BOP wrapping. closes #1146