Correct bug with smarty