fix property undefined issue