This is an awful hack