FIX compount persistence in CKAN

Solves the bug reported by Juan Elosua.

The user has tested this branch and reported sucessfully.