Fix illegal transition during renewal

This fixes #19.