Fixed NSCoding error.