CBN creation inside boundary fix

Fix for issue http://adsk-oss.myjetbrains.com/youtrack/issue/MAGN-693