Fix regression added in commit 8906aaf29c564765f4b853ace0ba636d17ae18c2