typo in availabilityApi variable name