fixed a few bugs
update