Fix bad assignment of property