fixing bugs

stupid bugs