fix for apache formula