Fixing a bad reference for client-side