Fixed bug when installing nginx