Fixed small, rare bug.

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