Bug fixing on apache