fix bug with nginx