ttl-gradu 3.2

Fixes to bugs reported by Timo Männikkö.