Fixed error in properties parser

Caused errors when collection of enum should be parsed, afield pointed me to that.