Fixed error when retriving name from property. Thanks to LordDawnhunter