Fix setResult and constants