[-] BO : fixed error handling (and fixed a warning)