Bug fix: protocol was not taken into account.