Fix bug introduced with last change

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>