fix two oversights (thanks lukep)