backend: fixed proxy bugs