Remove needless hook to avoid an error