Corrected clients array handling on the server