small error cleanup