Proper (non-hacky) fix for SUP-807.