A terrible workaround for issue 325.