Fix average u calculation