Fix inspect bugs