Removes buggy transition code from settings function