Fixed session, x-real-ip bug