Fixed bug on requesting invalid path