Fixed typo in office home definition. Improved error handling.