Fixed infinite loop on inspect