Fixed problem with serving root file in some cases.