fxied the duplicated cleanup assignment
fixed the compatiable problem with nginx-1.3.11