Fix server file handling.