Restore id variable for mapTemplate