this fixes #2507 thanks @gilfrade and @Noltari Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>