Fixes some attr_accesible errors