bugfixes

Signed-off-by: Victor Gonzalez <victor.gonzalezro@gmail.com>