resolve bug with smarty and method run