Fixed bug in BE integration