fixed a few bugs here and there