Fix assumption that ownerId is an integer type.

Formatting to be fixed in a future pull request.