Fixing bug in net calc