fix #13 (generate bounds).