storage: fix allocation mismatch