Update application/libraries/template.php

Try this