Fix #1403 Wron g calculation for detailled view