big bug fix, i'm soo stupid