Fix wrong auto mode type, see #51