Fix server scripts