nginx agent bugfix