fixed error in generation initial values