fixed small compiler errors