fixed too short memory array