fix autodetect and changing home_pos