bug fixes in inspector