fixed an issue with the template sweep rolling