Fixed issues with nginx