Fixed initial generation bug