fix double fun call in inspect