fix minor basal bugs