fixed parsing factor/target attributes #387