bug with weights range was fixed