fix createExpiry call