code fix for nginx script