storage: fixed incorrect API usage