fix a couple bugs
correct value