Behaviour Bug Fixed

- Fixed a huge bug where behaviour sequence is not correctly built