solve the error form problem