Update proxy.lua

Fix #5, #10