Minor bugfixes to Contents API.