Fixes setStorage method in Storage.class