fixed bug in case of 404 and adjusted indentation