Fixed initialization bug.

Bug where items table initialization uses a not fully
initialized items array (I think).
Fixed by moving initialization code to postInitialization hook.