bug fix
Fixed some small bugs

fixed a few small things