Fix target dimensions in case of automatic join resolution