Bugfixes

Signed-off-by: Carlos Escribano <carlos@doofinder.com>