Fix NPE

Signed-off-by: Jorge Ruesga <jorge@ruesga.com>