Making changes, have stack overflow error