Fixing nginx issues