fix errors in Classes