bug fix alternative weight setting