Fix bug introduced in commit f5b0c3767bcecabaec39d55a012e6bd7bfd6915c