sometimes guess_type returns None