Ai implemented using behaviour tree is working in Editor but not working when it is packed

I’ve made very basic ai patrolling which moves to four predefined points . When tested in editor its working just fine but after packing the project AI is not moving at all.Also tried in 4.19,results are the same.IS there a fix for that?