fix fixing autolibs, fix #2017