some fixes in inspector