[#3] Revert code to how it works in ckan-2.x