found and fixed prior weights bug