fixed some changeBuffer bugs and dividebyzero in task and step