writing to plist issue