fix check availability