Fixed enum typedef issue reported by scott--