[BUGFIX] Fixed percents initialization

The variable was initialized as integer but used as an array. This is
now fixed.