fixed the bug I previously thought I fixed