fix --autosize not working when --debug or --logging is in use

fix #82