fixed common errors