Bug fix for NSCopying