fixed a coding error in inspector