bug fix and debug info

Signed-off-by: Axel Davy <axel.davy@ens.fr>