fixed duplicated hook call