fixed static array length problem