Fix dupliate 500 return in nginx