Building permit survives minor error