fix properties assignment