Fixed compilation error around readonly properties