Fix broken slim tenplates.

This PR will solve #1434.