[FIX] calendar: type of related field should be 'integer', not 'int'
[FIX] calendar: function field of type 'selection' must be given a selection parameter