fixed the bug I was dealing with last night