bugfix, size of arrays in environment