correction du bug seg fault