fixed generate-html get records