Bugfix in api : error when deleting measures