some bugs corrected

Signed-off-by: Jean FRUITET <jean.fruitet@free.fr>