Fix bug in parsing plist values