Fixed issue when no action assigned to hook