fixed init hook