Speculative fix for the errors with free buildings granted by traits.