Fine tune to fix bug in nginx