Fixing wrong code .status.setAvailability = status.setAvailability;