This commit fix a minor bug in the previuos commit
Signed-off-by: Ivo Calado <txithihausen@gmail.com>