fixed segfault, proper # nprops in loop