fix array definition and array index

* fix class BaseHooks

Change-Id: If68357aa2e0397dc20da795308c2c16f4a73acf7