Fix weight calc problem with mutex analysis