bad off-by-one (attrs not set correctly)