Fix startup hook