Unfortunately, what you describe is unfair, but legal, unless you had a written employment contract whose terms prevented you from being terminated at that time (e.g. it guaranteed you some initial trial or probationary period) or for that reason: in the absence of a written employment contract, you were an employee at will, and an employee at will may be terminated at any time, for any reason--even for not meeting an impossible target, or a possible sales target in an impossible period of time.