fix a bug in storage usage