(fix) #1 Fix logic bug in getting storage env