fix in behaviour.js