This is probably a nasty hack in the wrong place, but I think it'll fix my issues