Random color per user and bugfix of not freing resources