Bug fix

Signed-off-by: Gabriel Reiser <greiser@cardfree.com>