Fixed problem with underscores in aggregate props

There was a problem with replacing blanks with underscores for agregate
properties. should work as intended now.