Fixed fatal error about missing method thin_walls(). #1607 #1615