fixing small bugs

don't remember what