fixes max components check