Fixed bugs with web root path