fix for inspector bug