fix the static serve generator bug