Fix dynamic array declaration error