Reset samples on template/context change