Fix some buggy iPod code which could cause segmentation faults.