fix for NSCoding