Bugfixing query in team divident calculation.