Fixed autoselect type (issue 71)