diff --git a/bob/ip/binseg/data/imagefolderinference.py b/bob/ip/binseg/data/imagefolderinference.py
index e396e7b42a3671d2c880dbba1aa55e090bd0f865..c4218755f099e5455e474b67fcaa004f99f46ca4 100644
--- a/bob/ip/binseg/data/imagefolderinference.py
+++ b/bob/ip/binseg/data/imagefolderinference.py
@@ -25,7 +25,7 @@ class ImageFolderInference(Dataset):
     Generic ImageFolder containing images for inference
 
     Notice that this implementation, contrary to its sister
-    :py:class:`bob.ip.binseg.data.ImageFolder`, does not *automatically*
+    :py:class:`.ImageFolder`, does not *automatically*
     convert the input image to RGB, before passing it to the transforms, so it
     is possible to accomodate a wider range of input types (e.g. 16-bit PNG
     images).