fix error array releated