fix type errors and republish