Fix error and formatting.