Fix automatic site generation issue