fixed some attr_readers in course model