[gladys] code cleanup from last commit
[weight_map] local var width