correct bugs

Signed-off-by: degrigis <fbi.gritti@gmail.com>