Fixed a weird nginx proxy-rewrite issue