Correct smarty bug