fixed compatibility with nginx-1.2.7