fix issue while returning 404.