Fixes forbidden attributes error and some other stuff I can't remember.