Fixed wrong conversion

Signed-off-by: Alessandro D'Aquino (elara) <alex@midokura.com>