fixes (dumb) bug with toInt function
fixes bug for "terrain" ads
imports meta only when filled and != 0