minor bug fix for apache