hook not calling twice