Bug fix about dynamic array(?)