Fixes for system76/beansbooks#179