Small bugfix to ensure correct array is created