change variable name (bug: variable $id has been replace when pass into template)