fix bugs revealed by testing
fix bugs revealed by testing

ChrisSchinnerl/Sia,NebulousLabs/Sia,Mingling94/Sia,cyrozap/Sia,rivine/rivine,kustomzone/Sia,NebulousLabs/Sia,ericflo/Sia,MrStrong/Sia,mnsl/Sia,ChrisSchinnerl/Sia,mtlynch/Sia,mharkus/Sia,MrStrong/Sia,johnathanhowell/Sia,mtlynch/Sia,rivine/rivine,mnsl/Sia,mharkus/Sia,ericflo/Sia