Trait DATA throwing an error after patch