Fixed a bug that was making CUD actions fail