Invalid argument exception fix

Needs to convert dynamic property to string to avoid invalid argument exception.