fixed missing belongs_to in licence types