Fixed some bugs in requesting server files