Fixed the importing of NBE files

Due to a variable scope issue, NBE files where not being properly imported.