Bug fixing

Signed-off-by: Carlo Caione <carlo.caione@gmail.com>