fix to apache script