server-side code fix