fixed the error that is caused by nginx resolver API changing