fix #4 auto tile generator