Fixing stuff for array