Fixes #3289 - template listing fails