fixed the select update from template