Fixed 404 on resource not found.