Fix all of the Smarty warnings