Fixes an not instantiated array error