Fixed bug where checking for storage space.  Issue #2038.