Fixed #13711, #13528 -- Fixed problems in autogeneration and autotruncation.