fixed an issue with template slots