fixed the bug i made