Fix for bug: WPDS weight wasn't being initialized to 0

This fix courtesy of Junghee