Fixing a bug with the apache build