to clarify, I figured out why it didn't works before. I had one issue in my main file.
I tried to assign the weights selectively using #index. I assumed that the rest will be assign automatically to 0.5.
But it is not true.
Thanks shooltz for help.