minor correction to error handling