Modified the getprop method.
Merge pull request #261 from askeing/modify_getprop

Modified the getprop method.