fixed mod errors